/*
 * \brief  Dataspace interface
 * \author Norman Feske
 * \date   2006-07-05
 */

/*
 * Copyright (C) 2006-2009 Norman Feske
 * Genode Labs, Feske & Helmuth Systementwicklung GbR
 *
 * This file is part of the Genode OS framework, which is distributed
 * under the terms of the GNU General Public License version 2.
 */

#ifndef _INCLUDE__DATASPACE__DATASPACE_H_
#define _INCLUDE__DATASPACE__DATASPACE_H_

#include <base/stdint.h>

namespace Genode {

	class Dataspace
	{
		public:

			enum Opcode {
				SIZE,
				PHYS_ADDR,
				NUM_GENERIC_OPCODES  /* first unused opcode */
			};

			virtual ~Dataspace() { }

			/**
			 * Request size of dataspace
			 */
			virtual size_t size() = 0;

			/**
			 * Request base address in physical address space
			 */
			virtual addr_t phys_addr() = 0;
	};
}

#endif /* _INCLUDE__DATASPACE__DATASPACE_H_ */
